package com.example.study_thread.c_list;

import java.util.LinkedList;

public class Demo2LinkedLIst {
    public static void main(String[] args) {
        LinkedList<String> linkedList = new LinkedList<>();
        linkedList.add("1");
        linkedList.add("2");
        linkedList.add("3");
        System.out.println(linkedList);

        for (String s : linkedList) {
            System.out.println("元素为：" + s);
        }

        int[] arr = {11, 21, 213};
        for (int i : arr) {
            System.out.println("arr:" + i);
        }
    }
}
